package cn.stylefeng.guns.modular.basic.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 托盘表
 * </p>
 *
 * @author hu
 * @since 2019-06-28
 */
@TableName("basic_tray")
public class BasicTray implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 库位id
     */
    @TableField("tray_position_id")
    private Integer trayPositionId;

    /**
     * 存放库位
     */
    @TableField("tray_position_name")
    private String trayPositionName;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 载重
     */
    @TableField("tray_load")
    private String trayLoad;

    /**
     * 长度
     */
    @TableField("tray_length")
    private String trayLength;

    /**
     * 宽度
     */
    @TableField("tray_width")
    private String trayWidth;

    /**
     * 体积
     */
    @TableField("tray_volume")
    private String trayVolume;

    /**
     * 可用体积
     */
    @TableField("tray_canvolume")
    private String trayCanvolume;

    /**
     * 已用体积
     */
    @TableField("tray_alreadyvolume")
    private String trayAlreadyvolume;

    /**
     * 托盘类型
     */
    @TableField("tray_type")
    private String trayType;

    /**
     * 托盘状态
     */
    @TableField("tray_state")
    private String trayState;

    /**
     * 备注
     */
    @TableField("tray_notes")
    private String trayNotes;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    public Long getDeliverId() {
        return deliverId;
    }

    public void setDeliverId(Long deliverId) {
        this.deliverId = deliverId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTrayPositionId() {
        return trayPositionId;
    }

    public void setTrayPositionId(Integer trayPositionId) {
        this.trayPositionId = trayPositionId;
    }

    public String getTrayPositionName() {
        return trayPositionName;
    }

    public void setTrayPositionName(String trayPositionName) {
        this.trayPositionName = trayPositionName;
    }

    public String getTrayNumber() {
        return trayNumber;
    }

    public void setTrayNumber(String trayNumber) {
        this.trayNumber = trayNumber;
    }

    public String getTrayLoad() {
        return trayLoad;
    }

    public void setTrayLoad(String trayLoad) {
        this.trayLoad = trayLoad;
    }

    public String getTrayLength() {
        return trayLength;
    }

    public void setTrayLength(String trayLength) {
        this.trayLength = trayLength;
    }

    public String getTrayWidth() {
        return trayWidth;
    }

    public void setTrayWidth(String trayWidth) {
        this.trayWidth = trayWidth;
    }

    public String getTrayVolume() {
        return trayVolume;
    }

    public void setTrayVolume(String trayVolume) {
        this.trayVolume = trayVolume;
    }

    public String getTrayCanvolume() {
        return trayCanvolume;
    }

    public void setTrayCanvolume(String trayCanvolume) {
        this.trayCanvolume = trayCanvolume;
    }

    public String getTrayAlreadyvolume() {
        return trayAlreadyvolume;
    }

    public void setTrayAlreadyvolume(String trayAlreadyvolume) {
        this.trayAlreadyvolume = trayAlreadyvolume;
    }

    public String getTrayType() {
        return trayType;
    }

    public void setTrayType(String trayType) {
        this.trayType = trayType;
    }

    public String getTrayState() {
        return trayState;
    }

    public void setTrayState(String trayState) {
        this.trayState = trayState;
    }

    public String getTrayNotes() {
        return trayNotes;
    }

    public void setTrayNotes(String trayNotes) {
        this.trayNotes = trayNotes;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "BasicTray{" +
        "id=" + id +
        ", trayPositionId=" + trayPositionId +
        ", trayPositionName=" + trayPositionName +
        ", trayNumber=" + trayNumber +
        ", trayLoad=" + trayLoad +
        ", trayLength=" + trayLength +
        ", trayWidth=" + trayWidth +
        ", trayVolume=" + trayVolume +
        ", trayCanvolume=" + trayCanvolume +
        ", trayAlreadyvolume=" + trayAlreadyvolume +
        ", trayType=" + trayType +
        ", trayState=" + trayState +
        ", trayNotes=" + trayNotes +
        ", version=" + version +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        "}";
    }
}
